package org.springframework.context.support.custom;

import java.util.Locale;
import java.util.Properties;

public class ReloadableResourceBundleMessageSource extends org.springframework.context.support.ReloadableResourceBundleMessageSource {

    public Properties getProperties(Locale locale) {
	Properties properties = null;
	if (locale == null) {
	    locale = Locale.getDefault();
	}
	PropertiesHolder propertiesHolder = this.getMergedProperties(locale);
	if (propertiesHolder != null) {
	    properties = propertiesHolder.getProperties();
	}
	return properties;
    }
}
